package com.xinzhi.savingpot.search.vo;


import lombok.Data;

import org.apache.solr.client.solrj.beans.Field;
import org.springframework.data.solr.core.mapping.SolrDocument;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data

@SolrDocument(collection = "savingbot_core")
public class TaskInfoSolr implements Serializable {

    @Field("id")
    private String taskId;
    @Field("task_userId")
    private String userId;
    @Field("task_taskNumber")
    private String taskNumber;
    @Field("task_taskClassId")
    private String taskClassId;
    @Field("task_taskTitle")
    private String taskTitle;
    @Field("task_taskUnitPrice")
    private Double taskUnitPrice;
    @Field("task_releaseTime")
    private String releaseTime;


    @Override
    public String toString() {
        return "TaskInfos{" +
                "taskId=" + taskId +
                ", userId=" + userId +
                ", taskNumber=" + taskNumber +
                ", taskClassId=" + taskClassId +
                ", taskTitle='" + taskTitle + '\'' +
                ", taskUnitPrice=" + taskUnitPrice +
                ", releaseTime=" + releaseTime +
                '}';
    }
}
